package com.fiberhome.app.network;

/**
 * Created by Deed on 2018/1/17.
 */

public final class Failure implements IData {
    /**
     *
     */
    public static final int ERROR_CONNECT = 1;
    public static final int ERROR_DATA_NULL = 2;
    public static final int ERROR_DATA_PARSE = 3;

    private int code;
    private String failDetail;

    /**
     *
     * @param code int
     */
    public Failure(int code) {
        this.code = code;
    }

    /**
     *
     * @param code int
     * @param failDetail String
     */
    public Failure(int code, String failDetail) {
        this.code = code;
        this.failDetail = failDetail;
    }

    /**
     * return value.
     */
    public int getCode() {
        return code;
    }

    /**
     * return value.
     */
    public String getFailDetail() {
        return failDetail;
    }
}
